#!/usr/bin/env python
#coding=utf-8
"""

"""

class Oldboy:
	#类变量
	school_name = 'oldboy'
	population = 0
	def __init__(self, name='abc'):
		self.name = name
		Oldboy.population += 1

	def say(self):
		print '%s graudate, and byebye' % self.name
		print 'total for oldboy is %s' % Oldboy.population

def test():
	ran = Oldboy('ran')
	ran.say()
	alex = Oldboy('alex')
	alex.say()
	xxx = Oldboy('xxx')
	xxx.say()
	ooo = Oldboy('ooo')
	ooo.say()

if __name__ == '__main__':
	test()